score = eval(input())
while 0 <= score <= 100 :
    if 80 <= score <= 100 :
        print("优")
    elif 60 <= score < 80 :
        print("良")
    else :
        print("差")
    score = eval(input())
else:
    print("输出不合法")